/*
 * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

package org.jetbrains.kotlin.types;

import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;

import java.io.File;
import java.util.regex.Pattern;

/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestGeneratorForCompilerTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("compiler/testData/type/binding")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class TypeBindingTestGenerated extends AbstractTypeBindingTest {
  private void runTest(String testDataFilePath) {
    KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
  }

  public void testAllFilesPresentInBinding() {
    KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/type/binding"), Pattern.compile("^(.+)\\.kt$"), null, true);
  }

  @TestMetadata("compiler/testData/type/binding/explicit")
  @TestDataPath("$PROJECT_ROOT")
  @RunWith(JUnit3RunnerWithInners.class)
  public static class Explicit extends AbstractTypeBindingTest {
    private void runTest(String testDataFilePath) {
      KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
    }

    public void testAllFilesPresentInExplicit() {
      KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/type/binding/explicit"), Pattern.compile("^(.+)\\.kt$"), null, true);
    }

    @TestMetadata("conflictingProjection.kt")
    public void testConflictingProjection() {
      runTest("compiler/testData/type/binding/explicit/conflictingProjection.kt");
    }

    @TestMetadata("conflictingProjection2.kt")
    public void testConflictingProjection2() {
      runTest("compiler/testData/type/binding/explicit/conflictingProjection2.kt");
    }

    @TestMetadata("errorPair.kt")
    public void testErrorPair() {
      runTest("compiler/testData/type/binding/explicit/errorPair.kt");
    }

    @TestMetadata("errorWithProjection.kt")
    public void testErrorWithProjection() {
      runTest("compiler/testData/type/binding/explicit/errorWithProjection.kt");
    }

    @TestMetadata("functionType.kt")
    public void testFunctionType() {
      runTest("compiler/testData/type/binding/explicit/functionType.kt");
    }

    @TestMetadata("functionType2.kt")
    public void testFunctionType2() {
      runTest("compiler/testData/type/binding/explicit/functionType2.kt");
    }

    @TestMetadata("functionType3.kt")
    public void testFunctionType3() {
      runTest("compiler/testData/type/binding/explicit/functionType3.kt");
    }

    @TestMetadata("inProjection.kt")
    public void testInProjection() {
      runTest("compiler/testData/type/binding/explicit/inProjection.kt");
    }

    @TestMetadata("int.kt")
    public void testInt() {
      runTest("compiler/testData/type/binding/explicit/int.kt");
    }

    @TestMetadata("list0.kt")
    public void testList0() {
      runTest("compiler/testData/type/binding/explicit/list0.kt");
    }

    @TestMetadata("list2.kt")
    public void testList2() {
      runTest("compiler/testData/type/binding/explicit/list2.kt");
    }

    @TestMetadata("nullableType.kt")
    public void testNullableType() {
      runTest("compiler/testData/type/binding/explicit/nullableType.kt");
    }

    @TestMetadata("outProjection.kt")
    public void testOutProjection() {
      runTest("compiler/testData/type/binding/explicit/outProjection.kt");
    }

    @TestMetadata("pair.kt")
    public void testPair() {
      runTest("compiler/testData/type/binding/explicit/pair.kt");
    }

    @TestMetadata("simple.kt")
    public void testSimple() {
      runTest("compiler/testData/type/binding/explicit/simple.kt");
    }

    @TestMetadata("star.kt")
    public void testStar() {
      runTest("compiler/testData/type/binding/explicit/star.kt");
    }

    @TestMetadata("typeWithBracket.kt")
    public void testTypeWithBracket() {
      runTest("compiler/testData/type/binding/explicit/typeWithBracket.kt");
    }

    @TestMetadata("unresolvedType.kt")
    public void testUnresolvedType() {
      runTest("compiler/testData/type/binding/explicit/unresolvedType.kt");
    }
  }

  @TestMetadata("compiler/testData/type/binding/implicit")
  @TestDataPath("$PROJECT_ROOT")
  @RunWith(JUnit3RunnerWithInners.class)
  public static class Implicit extends AbstractTypeBindingTest {
    private void runTest(String testDataFilePath) {
      KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
    }

    public void testAllFilesPresentInImplicit() {
      KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/type/binding/implicit"), Pattern.compile("^(.+)\\.kt$"), null, true);
    }

    @TestMetadata("conflictingProjection.kt")
    public void testConflictingProjection() {
      runTest("compiler/testData/type/binding/implicit/conflictingProjection.kt");
    }

    @TestMetadata("conflictingProjection2.kt")
    public void testConflictingProjection2() {
      runTest("compiler/testData/type/binding/implicit/conflictingProjection2.kt");
    }

    @TestMetadata("errorPair.kt")
    public void testErrorPair() {
      runTest("compiler/testData/type/binding/implicit/errorPair.kt");
    }

    @TestMetadata("errorWithProjection.kt")
    public void testErrorWithProjection() {
      runTest("compiler/testData/type/binding/implicit/errorWithProjection.kt");
    }

    @TestMetadata("functionType.kt")
    public void testFunctionType() {
      runTest("compiler/testData/type/binding/implicit/functionType.kt");
    }

    @TestMetadata("functionType2.kt")
    public void testFunctionType2() {
      runTest("compiler/testData/type/binding/implicit/functionType2.kt");
    }

    @TestMetadata("functionType3.kt")
    public void testFunctionType3() {
      runTest("compiler/testData/type/binding/implicit/functionType3.kt");
    }

    @TestMetadata("inProjection.kt")
    public void testInProjection() {
      runTest("compiler/testData/type/binding/implicit/inProjection.kt");
    }

    @TestMetadata("int.kt")
    public void testInt() {
      runTest("compiler/testData/type/binding/implicit/int.kt");
    }

    @TestMetadata("list0.kt")
    public void testList0() {
      runTest("compiler/testData/type/binding/implicit/list0.kt");
    }

    @TestMetadata("list2.kt")
    public void testList2() {
      runTest("compiler/testData/type/binding/implicit/list2.kt");
    }

    @TestMetadata("nullableType.kt")
    public void testNullableType() {
      runTest("compiler/testData/type/binding/implicit/nullableType.kt");
    }

    @TestMetadata("outProjection.kt")
    public void testOutProjection() {
      runTest("compiler/testData/type/binding/implicit/outProjection.kt");
    }

    @TestMetadata("pair.kt")
    public void testPair() {
      runTest("compiler/testData/type/binding/implicit/pair.kt");
    }

    @TestMetadata("simple.kt")
    public void testSimple() {
      runTest("compiler/testData/type/binding/implicit/simple.kt");
    }

    @TestMetadata("star.kt")
    public void testStar() {
      runTest("compiler/testData/type/binding/implicit/star.kt");
    }

    @TestMetadata("typeWithBracket.kt")
    public void testTypeWithBracket() {
      runTest("compiler/testData/type/binding/implicit/typeWithBracket.kt");
    }

    @TestMetadata("unresolvedType.kt")
    public void testUnresolvedType() {
      runTest("compiler/testData/type/binding/implicit/unresolvedType.kt");
    }
  }
}
